package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.CustMessageChatLogEntity;
import com.rentong.wx.cust.dto.CustMessageChatLogEntityDto;
import com.rentong.wx.cust.dto.CustMessageChatDto;
import com.rentong.wx.cust.dto.CustUserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:32
 */
@Mapper
public interface CustMessageChatLogDao extends BaseMapper<CustMessageChatLogEntity> {

    Integer getChatWeiduZongshu(@Param("custId")Long custId);

    List<CustMessageChatDto> getChatList(@Param("custId")Long custId);

    CustMessageChatDto getChatListById(@Param("senderId")Long senderId, @Param("receiverId")Long receiverId);

    List<CustMessageChatLogEntityDto> getChatContent(@Param("custId") Long custId, @Param("userId")Long userId);

    CustUserDto getUserInformation(Long custId);

    Integer updateReadeStatus(@Param("custId") Long custId, @Param("userId") Long userId);

    List<CustMessageChatLogEntity> selectchatLogIds(@Param("custId") Long custId, @Param("userId")Long userId);

    Integer delInformation(@Param("custId") Long custId, @Param("userId") Long userId);

    Integer delInformation2(@Param("custId") Long custId, @Param("userId") Long userId);

    void updateMessagetState(@Param("custId") Long custId, @Param("userId") Long userId);

    Integer getNotRead(@Param("custId") Long custId, @Param("userId") Long userId);


}
